package com.sailorj.itools.entity;

import java.sql.Timestamp;

public class CommitLogInfo {

    // 项目名称
    public String projectName;

    // 分支
    public String branchName;

    // 提交的commit id
    public String commitID;

    // 提交的次数
    public int commitNum;

    //提交人
    public String commitUserName;

    //提交的邮箱
    public String commitEmail;

    //提交的备注
    public String commitComment;

    //提交时间
    public Timestamp commitTime;

    // 新增行数
    public int addLines;

    // 删除行数
    public int subLines;

    public CommitLogInfo() {
    }

    public CommitLogInfo(String commitUserName, String commitEmail, String commitComment, Timestamp commitTime) {
        this.commitUserName = commitUserName;
        this.commitEmail = commitEmail;
        this.commitComment = commitComment;
        this.commitTime = commitTime;
    }

    public int getAddLines() {
        return addLines;
    }

    public void setAddLines(int addLines) {
        this.addLines = addLines;
    }

    public int getSubLines() {
        return subLines;
    }

    public void setSubLines(int subLines) {
        this.subLines = subLines;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    public int getCommitNum() {
        return commitNum;
    }

    public void setCommitNum(int commitNum) {
        this.commitNum = commitNum;
    }

    public String getCommitID() {
        return commitID;
    }

    public void setCommitID(String commitID) {
        this.commitID = commitID;
    }


    @Override
    public String toString() {
        return "CommitLogInfo{" +
                "commitUserName='" + commitUserName + '\'' +
                ", commitEmail='" + commitEmail + '\'' +
                ", commitComment='" + commitComment + '\'' +
                ", commitTime=" + commitTime +
                '}';
    }

    public String getCommitUserName() {
        return commitUserName;
    }

    public void setCommitUserName(String commitUserName) {
        this.commitUserName = commitUserName;
    }

    public String getCommitEmail() {
        return commitEmail;
    }

    public void setCommitEmail(String commitEmail) {
        this.commitEmail = commitEmail;
    }

    public String getCommitComment() {
        return commitComment;
    }

    public void setCommitComment(String commitComment) {
        this.commitComment = commitComment;
    }

    public Timestamp getCommitTime() {
        return commitTime;
    }

    public void setCommitTime(Timestamp commitTime) {
        this.commitTime = commitTime;
    }
}
